package com.application.fabric.test;

import com.alibaba.fastjson.JSON;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;


public class 读取公私密钥测试 {
    public static void main(String[] args) {
//        new FileReader("");
          /*BufferedReader 读取*/
        try {
            BufferedReader reader = new BufferedReader(new FileReader(new File("src/main/java/com/application/fabric/fabriccontrol/wallet/appUser.id")));
            String line;
            while ((line = reader.readLine()) != null) {
                System.out.println(line);
                String str  = JSON.toJSONString(line);
                System.out.println(str);
                System.out.println();
            }
            reader.close();

        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
